package agend.client.behaviours;

import jade.core.AID;
import jade.core.behaviours.OneShotBehaviour;
import jade.gui.GuiEvent;
import jade.lang.acl.ACLMessage;

import java.io.IOException;
import java.util.Date;

import agend.client.sevices.AgentClientServices;
import agend.client.utils.GetAID;
import dto.utils.DataTransferObject;

/**
 * Bheaviour che invia una rischiesta di appuntamento
 */
public class RequestAppointmentBehaviour extends OneShotBehaviour {

	GuiEvent evt;
	public RequestAppointmentBehaviour(GuiEvent evt){
		this.evt=evt;
	}
	
	private static final long serialVersionUID = 1L;
//	private AgentClientService c= new AgentClientService();
	
	
//	public RequestAppointmentBehaviour(AID sender, String receiver, Date startDate, Date endDate) {
//		// TODO Auto-generated constructor stub
//		super();
//		dto= new DataTransferObject(sender,receiver,startDate,endDate);
//		action();
//	}
	

	@Override
	public void action() {
		AgentClientServices.sendRequestMessage(evt);
	}
	
	
}
